﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ABCNet.PlatformFinancialLists
{
    /// <summary>
    /// 平台账务流水
    /// </summary>
    [Table("N_PlatformFinancialLists")]
    public class PlatformFinancialList : Abp.Domain.Entities.Auditing.CreationAuditedEntity
    {

        /// <summary>
        /// 客户Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 点位Id
        /// </summary>
        public int NetPointId { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public BusinessTypes BusinessType { get; set; }

        /// <summary>
        /// 业务类型名称
        /// </summary>
        [StringLength(256)]
        public string BusinessTypeName { get; set; }

        /// <summary>
        /// 改变之前
        /// </summary>
        public decimal BeforeChangedAmount { get; set; }

        /// <summary>
        /// 改变之后
        /// </summary>
        public decimal AfterChangedAmount { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal ChangedAmount { get; set; }

        /// <summary>
        /// 业务Id
        /// </summary>
        public int? BusinessId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(256)]
        public string Remark { get; set; }
    }


    /// <summary>
    /// 业务类型
    /// </summary>
    public enum BusinessTypes : int
    {
        用户提现 = 0,
        用户转账 = 1,
        点位收益 = 3,
        推荐注册 = 4,
        用户充值 = 5,
        A网1层单点收益 = 6,
        A网2层单点收益 = 7,
        A网3层单点收益 = 8,
        A网4层单点收益 = 9,
        A网5层单点收益 = 10,
        B网1层单点收益 = 11,
        B网2层单点收益 = 12,
        B网3层单点收益 = 13,
        B网4层单点收益 = 14,
        B网5层单点收益 = 15,
        C网1层单点收益 = 16,
        C网2层单点收益 = 17,
        C网3层单点收益 = 18,
        C网4层单点收益 = 19,
        C网5层单点收益 = 20,
        A网赠点 = 21,
        B网赠点 = 22,
        C网赠点 = 23,
        提现手续费 = 24,
        撤销提现手续费 = 25,
        收益扣税 = 26
    }
}
